![]() |
FSpSetFLock |
||||
Header: | Files.h | Carbon status: | Supported | |
Locks a file.
OSErr FSpSetFLock ( const FSSpec *spec );
A pointer to an FSSpec structure specifying the file to lock.
A result code.
After you lock a file, all new access paths to that file are read-only. This function has no effect on existing access paths.
If the PBHGetVolParmsSync or PBHGetVolParmsAsync functions indicate that the volume supports folder locking (that is, the bHasFolderLock bit of the vMAttrib field is set), you can use FSpSetFLock to lock a directory.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)